Repository navigation
Items API - #117
Merged
Merged
Items API#117
Conversation
Mimic asks the provider whether a block exists instead of looking for the ID in allBlocks. By default, it still looks there, but a provider may override it with a faster check, or if it can't list its blocks. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Closed
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 159 |
| Duplication | 4 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
osipxd
force-pushed
the
feature/items-api
branch
2 times, most recently
from
November 16, 2026 10:22
5c27240 to
3fd7fe0
Compare
Mimic passes a blank state to block providers as null, so providers don't have to handle it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ItemProvider is implemented by plugins to expose their items, Items is the consumer API combining items of all providers. Item IDs are Keys with the provider ID as a required namespace. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
MimicItems combines items of all item providers, using provider IDs as namespaces. An item belongs to the provider with the highest priority recognizing it. Mimic.registerItemProvider and Mimic.items give access to it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Providers for vanilla items, MMOItems, CraftEngine and CustomItems. MMOItems IDs include the item type: mmoitems:sword/excalibur (#87). MMOItems and CraftEngine build an item for the given player. Empty stacks have no ID, and air is not an item. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Item IDs require a namespace, items are created for the target player. ID suggestions no longer search the 'mimic' namespace over all namespaces. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ItemsRegistry, BukkitItemsRegistry, the built-in items registries and the items registry methods of Mimic are deprecated in favor of Items API, but keep working. ItemMetaPayload is deprecated in favor of item components. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Every registered ItemsRegistry is available via Items API as an item provider, an ItemProvider with the same ID always replaces the bridge. Mimic.itemsRegistry is a view over Items: it keeps the search without a namespace, IDs with more than one ':' and MMOItems IDs without item type, but compares items by their owner (#86). Items registries' own isSameItem is used again (#85). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The option lists plugins whose items should not be available via Mimic, including bridged items registries. The legacy disabled-items-registries value is moved automatically. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
osipxd
force-pushed
the
feature/items-api
branch
from
November 16, 2026 10:35
3fd7fe0 to
ea3d195
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ItemProviderandItemsAPIs withMimic.itemsandMimic.registerItemProvider():KeyIDs with a required namespace, creation for a player,Stringpayloadminecraft,mmoitems(<type>/<id>),craftengine,customitemsItemsRegistryAPI is deprecated: registries are bridged to providers,Mimic.itemsRegistryis a view over the new aggregator keeping IDs without namespace,ns:a:band bare MMOItems IDsItemProvider.hasItemandBlockProvider.hasBlocklet a provider check existence without listing everythingItemMetaPayload) ofminecraftitems is deprecated in favor of item components/mimic itemsuses the new API,disabled-items-registriesis renamed todisabled-item-providerswith migrationCloses #95, closes #85, closes #86, closes #87
🤖 Generated with Claude Code